from django.conf.urls import url

from . import views
app_name='myapp'
urlpatterns = [
    url(r'^$', views.index , name="index"),
    url(r'^(?P<question_id>\d+)/$', views.detail, name="detail"),
    url(r'^(?P<pk>\d+)/results/$', views.ResultsView.as_view(), name='results'),
    url(r'^(?P<question_id>\d+)/vote/$', views.vote, name='vote'),
]
